<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/boot.js"></script>
</head>

<body>
    <div class="layui-fluid">
        <div class="flexrow">
            <div class="layui-panel list-container">
                <div class="list-search-container">
                    <div class="list-search-item">
                        <span style="width: 50px">文字：</span>
                        <input id="itemName" autocomplete="off" class="layui-input">
                    </div>
                    <div class="list-search-item">
                        <span style="width: 50px">值：</span>
                        <input id="itemValue" autocomplete="off" class="layui-input">
                    </div>
                    <button class="layui-btn layui-btn-sm" style="margin-left:5px" onclick="BindTableData()"><i class="layui-icon layui-icon-search layui-font-12"></i>搜索</button>
                </div>
                <table class="layui-table" lay-data="{id: 'datagrid'}" lay-filter="datagrid">
                    <thead>
                        <tr>
                            <th lay-data="{field:'itemText'}">文字</th>
                            <th lay-data="{field:'itemValue'}">值</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
</body>
<script>

    $(function() {
        BindTableData();
    })

    function BindTableData() {
        var param = {
            codeName: GetParam(),
            itemName: $("#itemName").val(),
            itemValue: $("#itemValue").val(),
        }
        BindTable("datagrid", "frame/enumcode/getCodeItemList", param)
    }


</script>

</html>